package com.itheima.example;

public class Example11 {
    public static void main(String[] args) {
        int sum1=add(2,3);
        int sum2=add(2,3,4);
        double sum3 = add(2.5,3.5);
        System.out.println("sum1="+sum1);
        System.out.println("sum2="+sum2);
        System.out.println("sum3="+sum3);
    }

    private static double add(double d, double e) {
        return d+e;
    }

    private static int add(int i, int j, int k) {
        return i+j+k;
    }

    private static int add(int i, int j) {
        return i+j;
    }
}
